package edu.its.dreamteam.daf.beans;

import java.io.Serializable;

import org.apache.commons.lang.builder.EqualsBuilder;

public class Formation extends BaseBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String idFormation;
	private String formation;
	private String description;
	private Integer totalDF;
	private Integer totalMF;
	private Integer totalFW;
	
	
	public String getIdFormation() {
		return idFormation;
	}

	public void setIdFormation(String idFormation) {
		this.idFormation = idFormation;
	}

	public String getFormation() {
		return formation;
	}

	public void setFormation(String formation) {
		this.formation = formation;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getTotalDF() {
		return totalDF;
	}

	public void setTotalDF(Integer totalDF) {
		this.totalDF = totalDF;
	}

	public Integer getTotalMF() {
		return totalMF;
	}

	public void setTotalMF(Integer totalMF) {
		this.totalMF = totalMF;
	}

	public Integer getTotalFW() {
		return totalFW;
	}

	public void setTotalFW(Integer totalFW) {
		this.totalFW = totalFW;
	}

	@Override
	protected String getPrimaryKey() {
		return getIdFormation();
	}

	public boolean equals(Object object) {
		if (!(object instanceof Formation)) {
			return false;
		}
		Formation obj = (Formation) object;
		return new EqualsBuilder()
				.append(this.idFormation, obj.idFormation)
				.append(this.formation, obj.formation)
				.append(this.description, obj.description)
				.append(this.totalDF, obj.totalDF)
				.append(this.totalMF, obj.totalMF)
				.append(this.totalFW, obj.totalFW)
				.isEquals();
	}
	
	
}
